<!DOCTYPE html>
<html   xmlns="http://www.w3c.org/1999/xhtml"
        xmlns:h="http://java.sun.com/jsf/html"
        xmlns:p="http://primefaces.org/ui"
        xmlns:f="http://xmlns.jcp.org/jsf/core">
    <h:head/>
    <h:body>
        <h:panelGrid columns="2">
            <h:outputText value="Date: " />
            <p:inputMask value="#{inputMaskBean.dateField}" mask="99/99/9999" />
            <h:outputText value="Phone: " />
            <p:inputMask value="#{inputMaskBean.phone}" mask="(999) 999-9999"/>
            <h:outputText value="Phone with Ext: " />
            <p:inputMask value="#{inputMaskBean.phoneExt}" mask="(999) 999-9999? x99999"/>
            <h:outputText value="SSN: " />
            <p:inputMask value="#{bean.ssn}" mask="999-99-9999"/>
            <h:outputText value="Product Key: " />
            <p:inputMask value="#{bean.productKey}" mask="a*-999-a999"/>
        </h:panelGrid>
    </h:body>
</html>
